<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    *{
      margin: 0;
      padding: 0;
    }
    .test{
      width: 250px;
      border: 1px solid  black;
      display: flex;
    }
    label{
      flex: 1;
      text-align: center;
      background-color: #f5f5f5;
      font-family: '楷体';
    }
    .test label:nth-child(3){
      flex: 0 0 20px;
    }
    input{
      outline: none;
      border: none;
    }
  </style>

</head>
<body>
  <div class="test">
    <label>姓名</label>
    <input type="text">
    <label>go</label>
  </div>
</body>
</html>
